package com.aiyan.edu.framework.exception;

import com.aiyan.edu.framework.model.response.ResultCode;

/**
 * 异常转换抛出
 *
 * @author: zqzhou
 * @create: 2019/10/08 23:28
 **/
public class ExceptionThrow {

    /**
     * 转换异常并抛出
     *
     * @param resultCode
     */
    public static void out(ResultCode resultCode) {
        throw new CustomException(resultCode);
    }
}
